/*
 * @Author: 关棺 3156298705@qq.com
 * @Date: 2024-12-12 16:17:50
 * @LastEditors: 关棺 3156298705@qq.com
 * @LastEditTime: 2024-12-17 15:13:05
 * @FilePath: \supervision-ui\src\api\file\bin.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询文件回收站列表
export function listBin(data) {
  return request({
    url: '/system/bin/getFileTransfersWithRecycleBin',
    method: 'post',
   data
  })
}

// 查询文件回收站详细
export function getBin(recycleBinId) {
  return request({
    url: '/system/bin/' + recycleBinId,
    method: 'get'
  })
}

// 新增文件回收站
export function addBin(data) {
  return request({
    url: '/system/bin',
    method: 'post',
    data: data
  })
}

// 修改文件回收站
export function updateBin(data) {
  return request({
    url: '/system/bin',
    method: 'put',
    data: data
  })
}

// 删除文件回收站
export function delBin(recycleBinId) {
  return request({
    url: '/system/bin/' + recycleBinId,
    method: 'delete'
  })
}
